--- ./configure.orig
+++ ./configure
@@ -4394,6 +4394,7 @@
 if test "$_x11" = yes ; then
   def_x11='#define CONFIG_X11 1'
   vomodules="x11 xover $vomodules"
+  libs_mplayer="$libs_mplayer -lX11 -lXext"
 else
   _x11=no
   def_x11='#undef CONFIG_X11'
